package com.itheima.method;

public class MethodDemo1 {
    public static void main(String[] args) {
        printHelloWorld();
    }
    //定义一个方法
    public static void printHelloWorld() {
        System.out.println("调用方法");
        System.out.println("HelloWorld");
    }

}
